package et.six.eta.Adapter;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;


import et.six.eta.Util.app.BaseFragment;


public class RvLxrAdapter extends FragmentPagerAdapter{

    private BaseFragment[] frags;
    private final String[] tabTexts;


    public RvLxrAdapter(FragmentManager fm, BaseFragment[] frags, String[] tabTexts) {
        super(fm);
        this.frags = frags;
        this.tabTexts = tabTexts;
    }

    @Override
    public Fragment getItem(int position) {
        return frags[position];
    }

    @Override
    public int getCount() {
        return frags.length;
    }


    @Override
    public CharSequence getPageTitle(int position) {
        return tabTexts[position];
    }
}
